*Load VERNBY_DANCYGIER_PLOS_ONE.dta

*Code for replicating experimental results in paper

*Table 2

*Column 1
xi: reg invited immigrant citizen time i.stad, robust
*Column 2
xi: reg invited immigrant citizen woman religious experience  skilledjob time i.stad, robust 
*Column 3
xi: reg invited poland iraq somalia citizen time i.stad, robust
*Column 4
xi: reg invited poland iraq somalia citizen woman religious experience skilledjob time i.stad, robust 

*Table 3

*Column 1
xi: reg invited immigrant woman  religious experience skilledjob citizen time i.stad, robust
*Column 2
gen immigrantXexperience=experience*immigrant 
gen immigrantXskilledjob=skilledjob*immigrant
xi: reg invited immigrant citizen  woman  religious experience skilledjob  immigrantXexperience immigrantXskilledjob i.stad  time, robust 
*Column 3
gen immigrantXreligious=religious*immigrant
xi: reg invited immigrant citizen woman religious  experience skilledjob immigrantXreligious i.stad  time, robust 
*Column 4
gen immigrantXwoman=woman*immigrant
xi: reg invited immigrant citizen woman religious experience skilledjob immigrantXwoman i.stad time, robust 

*Table 4

*Column 1
gen citizenXpoland=citizen*poland 
gen citizenXiraq=citizen*iraq
gen citizenXsomalia=citizen*somalia
xi: reg invited  woman religious experience  skilledjob citizenXpoland citizenXiraq citizenXsomalia time i.stad, robust
*Column 2
gen experienceXpoland=experience*poland
gen experienceXiraq=experience*iraq
gen experienceXsomalia=experience*somalia
gen skilledjobXpoland=skilledjob*poland
gen skilledjobXiraq=skilledjob*iraq
gen skilledjobXsomalia=skilledjob*somalia 
xi: reg invited poland iraq somalia citizen woman religious experience skilledjob experienceXpoland experienceXiraq experienceXsomalia skilledjobXpoland skilledjobXiraq skilledjobXsomalia i.stad  time, robust 
*Column 3
gen religiousXpoland=religious*poland 
gen religiousXiraq=religious*iraq
gen religiousXsomalia=religious*somalia
xi: reg invited poland iraq somalia citizen woman religious experience skilledjob religiousXpoland religiousXiraq religiousXsomalia i.stad  time, robust 
*Column 4
gen womanXpoland=woman*poland
gen womanXiraq=woman*iraq
gen womanXsomalia=woman*somalia
xi: reg invited poland iraq somalia citizen woman religious experience skilledjob womanXpoland womanXiraq womanXsomalia i.stad  time, robust

